<!DOCTYPE html>

<%@ page pageEncoding="UTF-8" %>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<html lang="cn">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<meta name="description" content="真爱梦想中央账户系统登录页面，包括火堆，NC，梦想盒子等等" />
	<meta name="keywords" content="梦想盒子,真爱梦想,素养教育,求真,有爱,追梦,登录,梦想盒子首页,梦想盒子官网" />
	<meta name="author" content="sunset, 3415474@qq.com" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
	<meta name="apple-mobile-web-app-title" content="真爱梦想账户系统">
	<meta name="apple-mobile-web-app-capable" content="yes" />
	<meta name="apple-itunes-app" content="app-id=myAppStoreID, affiliate-data=myAffiliateData, app-argument=myURL">
	<meta name="apple-mobile-web-app-status-bar-style" content="black" />
	<meta http-equiv="Cache-Control" content="no-siteapp" />
	
    <title>真爱梦想账户系统</title>

    <meta name="_csrf" content="${_csrf.token}"/>
    <meta name="_csrf_header" content="${_csrf.headerName}"/>


    <spring:theme code="standard.custom.css.file" var="customCssFile" />
    <link rel="stylesheet" href="<c:url value="${customCssFile}" />" />
    <link rel="SHORTCUT ICON" href="<c:url value="/favicon.ico" />" />
    <style type="text/css">
        html, body
        {
            margin: 0px 0px;
            width: 100%;
            height: 100%;
        }
        iframe
        {
            display:block;
            margin: 0px 0px;
            width: 100%;
            height: 100%;
        }
    </style>
    <script type="text/javascript">
    	var domain = 'adream.org';
    	document.domain = domain;
        function iframeHeight() {
            document.getElementById('iframeId').height="100%";
        }
        document.addEventListener('touchstart',function(e){
    		    //touchstart:触摸开始的一瞬间，这里的e包含的触摸一瞬间所触摸的元素的信息
    			if(e.touches.length>1){
    				e.preventDefault();
    			}
    		},false);
    		var lastTouchEnd = 0;
    		document.addEventListener('touchend',function(e){
    		    //touchend:触摸结束的一瞬间，这里的e没有多大的作用
    			var now = (new Date()).getTime();
    			if(now-lastTouchEnd<=300){
    				e.preventDefault();
    			 }
    			lastTouchEnd = now;
    		},false);
    </script>
</head>
<div style="position:fixed">
<c:if test="${not pageContext.request.secure}">
    <div id="msg" class="errors">
        <h2><spring:message code="screen.nonsecure.title" /></h2>
        <p><spring:message code="screen.nonsecure.message" /></p>
    </div>
</c:if>

<div id="cookiesDisabled" class="errors" style="display:none;">
    <h2><spring:message code="screen.cookies.disabled.title" /></h2>
    <p><spring:message code="screen.cookies.disabled.message" /></p>
</div>
<script>
if(!navigator.cookieEnabled){
	$("#cookiesDisabled").style.display="block";
}

</script>
</div>
<c:if test="${param.client_id=='wxuser'}" var="isWeixin">
	<iframe src="/account/normal/pages/guest/binding.html" id="iframeId" frameborder="0" />
</c:if>
<c:if test="${param.type=='reg' and not isWeixin}" var="flag">
	<iframe src="/account/normal/pages/guest/reg.html" id="iframeId" frameborder="0" />
</c:if>
<c:if test="${not flag and not isWeixin}">
	<iframe src="/account/normal/pages/guest/login.html" id="iframeId" frameborder="0" />
</c:if>
</body>
</html>

